 /*
 * @description: 评论审核管理
 * @Author: along
 * @Date: 2019-08-24
 * @Last Modified by: along
 * @Last Modified time: 2020-08-24
 */
<template>
    <div class="container commentExamine">
        <!-- header -->
        <div class="header-nav">
            <div class="header-left">
                <div class="header-new-box">
                    <p class="header-new-box-title">用户手机/ID:</p>
                    <el-input
                        v-model="formData.student_no"
                        placeholder="请输入手机号码/ID"
                        size="small"
                        clearable
                        suffix-icon="el-icon-search"
                        @change="getTableData(1)"
                        @keyup.native.enter="getTableData(1)"
                    />
                </div>
                <div class="header-new-box">
                    <p class="header-new-box-title">评论内容:</p>
                    <el-input
                        v-model="formData.keyword"
                        placeholder="请输入评论内容"
                        size="small"
                        clearable
                        suffix-icon="el-icon-search"
                        @change="getTableData(1)"
                        @keyup.native.enter="getTableData(1)"
                    />
                </div>
                <div class="header-new-box">
                    <p class="header-new-box-title">审核人:</p>
                    <el-input
                        v-model="formData.verify_admin_true_name"
                        placeholder="请输入评论内容"
                        size="small"
                        clearable
                        suffix-icon="el-icon-search"
                        @change="getTableData(1)"
                        @keyup.native.enter="getTableData(1)"
                    />
                </div>
                <div class="header-new-box">
                    <p class="header-new-box-title">是否通过:</p>
                    <el-select
                        v-model="formData.through"
                        clearable
                        filterable
                        placeholder="请选择"
                        size="small"
                        @change="getTableData(1)"
                    >
                        <el-option
                            v-for="item in throughList"
                            :key="item.value"
                            :label="item.label"
                            :value="item.value"/>
                    </el-select>
                </div>
                <div class="header-new-box">
                    <p class="header-new-box-title">是否匿名:</p>
                    <el-select
                        v-model="formData.anonymous"
                        clearable
                        filterable
                        placeholder="请选择"
                        size="small"
                        @change="getTableData(1)"
                    >
                        <el-option
                            v-for="item in anonymouList"
                            :key="item.value"
                            :label="item.label"
                            :value="item.value"/>
                    </el-select>
                </div>
                <div class="header-new-box">
                    <p class="header-new-box-title">是否禁言:</p>
                    <el-select
                        v-model="formData.lebanon"
                        clearable
                        filterable
                        placeholder="请选择"
                        size="small"
                        @change="getTableData(1)"
                    >
                        <el-option
                            v-for="item in lebanonList"
                            :key="item.value"
                            :label="item.label"
                            :value="item.value"/>
                    </el-select>
                </div>
                <div class="header-new-box">
                    <p class="header-new-box-title">发布时间:</p>
                    <el-date-picker
                        v-model="date"
                        type="datetimerange"
                        :picker-options="pickerOptions()"
                        range-separator="至"
                        start-placeholder="开始日期"
                        end-placeholder="结束日期"
                        :default-time="['00:00:00', '23:59:59']"
                        align="right"
                        size="small"
                        @change="getTableData(1)"
                    />
                </div>
                <div class="header-new-box">
                    <el-button
                        type="primary"
                        size="small"
                        @click="getTableData(1)"
                    >
                        搜索
                    </el-button>
                </div>
            </div>
        </div>
        <!-- /header -->

        <!-- table -->
        <el-table
            :data="tableData"
            height="100%"
            style="width: 100%;"
            border
            ref="commentExamine"
        >
            <el-table-column
                type="index"
                width="80"
                label="序号"
                align="center"
            />
            <el-table-column
                prop="praise_no"
                label="夸奖编号"
                show-overflow-tooltip
                :formatter="emptyFormatter"
                align="center"
                :width="150"
            />
            <el-table-column
                prop="student.true_name"
                label="用户昵称"
                show-overflow-tooltip
                :formatter="emptyFormatter"
                align="center"
            />
            <el-table-column
                prop="student.phone"
                label="用户电话"
                show-overflow-tooltip
                :formatter="emptyFormatter"
                align="center"
                :width="140"
            />
            <el-table-column
                prop="tags"
                label="标签"
                show-overflow-tooltip
                :formatter="emptyFormatter"
                align="center"
                :width="150"
            >
                <template slot-scope="scope">
                    <p v-if="scope.row.tags.length > 0">
                        {{ scope.row.tags.join(',') }}
                    </p>
                    <p v-else>
                        --
                    </p>
                </template>
            </el-table-column>
            <el-table-column
                prop="content"
                label="评论详情"
                show-overflow-tooltip
                :formatter="emptyFormatter"
                align="center"
                :width="150"
            />
            <el-table-column
                prop="images"
                label="图片"
                show-overflow-tooltip
                :formatter="emptyFormatter"
                align="center"
            >
                <template slot-scope="scope">
                    <p
                        v-if="scope.row.images.length > 0"
                        class="cursor-font"
                        @click="fnShowPreview(scope.row.images, 0)"
                    >
                        查看({{ scope.row.images.length }})
                    </p>
                    <p v-else>
                        --
                    </p>
                </template>
            </el-table-column>
            <el-table-column
                prop="is_anonymous"
                label="是否匿名"
                show-overflow-tooltip
                :formatter="emptyFormatter"
                align="center"
            >
                <template slot-scope="scope">
                    <p v-if="scope.row.is_anonymous == 1">是</p>
                    <p v-if="scope.row.is_anonymous == 0">否</p>
                </template>
            </el-table-column>
            <el-table-column
                prop="student_block"
                label="是否禁言"
                show-overflow-tooltip
                :formatter="emptyFormatter"
                align="center"
            >
                <template slot-scope="scope">
                    <p v-if="scope.row.student_block == 1">是</p>
                    <p v-if="scope.row.student_block == 0">否</p>
                </template>
            </el-table-column>
            <el-table-column
                prop="create_time"
                label="发布时间"
                show-overflow-tooltip
                :formatter="emptyFormatter"
                align="center"
                :width="150"
            >
                <template slot-scope="scope">
                    {{ scope.row.create_time * 1000 | dateFormatter('yyyy/MM/dd HH:mm') }}
                </template>
            </el-table-column>
            <el-table-column
                prop="verify"
                label="审核状态"
                show-overflow-tooltip
                :formatter="emptyFormatter"
                align="center"
            >
                <template slot-scope="scope">
                    <p v-if="scope.row.verify == 1">通过</p>
                    <p v-if="scope.row.verify == -1">未通过</p>
                    <p v-if="scope.row.verify == 0">未审核</p>
                </template>
            </el-table-column>
            <el-table-column
                prop="verify_admin_true_name"
                label="审核人"
                show-overflow-tooltip
                :formatter="emptyFormatter"
                align="center"
            />
            <el-table-column
                label="操作"
                align="center"
                fixed="right"
            >
                <template slot-scope="scope">
                    <div class="button-list">
                        <el-button
                            type="text"
                            class="curse-add"
                            @click="fnEXamlineDialog(scope.row, scope.$index)"
                            v-if=" scope.row.verify == 0 "
                        >
                            审核
                        </el-button>
                        <el-button
                            type="text"
                            class="curse-add"
                            @click="fnSeeDialog(scope.row, scope.$index )"
                            v-if=" scope.row.verify !== 0 "
                        >
                            查看
                        </el-button>
                        <el-button
                            type="text"
                            class="curse-add"
                            @click="fnExamineAdopt(scope.row)"
                            :disabled=" scope.row.verify == 0 ? false : true "
                        >
                            通过
                        </el-button>
                        <el-button
                            type="text"
                            class="curse-add"
                            @click="fnExamineNoAdopt(scope.row, true)"
                            :disabled=" scope.row.verify == 0 ? false : true "
                        >
                            不通过
                        </el-button>
                        <el-button
                            type="text"
                            class="curse-add"
                            @click="fnNoComment(scope.row)"
                        >
                            {{ scope.row.student_block == 1 ? '取消禁言' : '禁言' }}
                        </el-button>
                    </div>
                </template>
            </el-table-column>
        </el-table>
        <!-- /table -->

        <!-- /分页 -->
        <div class="pagination-wrapper clearfix">
            <el-pagination
                background
                layout="total, prev, pager, next"
                :current-page.sync="page.now_page"
                :total="page.total_count"
                :page-size="page.page_size"
                @current-change="getTableData"
            />
        </div>

        <!-- 审核弹窗 -->
        <el-dialog
            :visible.sync="dialogVisible"
            :close-on-click-modal="false"
            :title="'评论详情'"
            width="620px"
        >
            <div class="zd-examine">
                <div
                    class="zd-examine-list"
                    :style="{marginBottom: '10px'}"
                >
                    <p class="zd-head-title">当页进度:</p>
                    <div class="zd-examine-line" >
                        <p
                            :style="{ width: 200 * (pageIndex + 1) / pageSize + 'px' }"
                            class="zd-examine-line-length"
                        />
                    </div>
                    <p class="zd-examine-page">{{ (pageIndex + 1) + '/' + pageSize }}</p>
                </div>
                <div
                    class="zd-examine-list"
                >
                    <p class="zd-head-title">审核人:</p>
                    <div class="zd-info">
                        <p class="zd-info-label">{{ dialogData.verify_admin_true_name ? dialogData.verify_admin_true_name : '--' }}</p>
                    </div>
                </div>
                <!-- 禁止后显示 -->
                <!-- <div class="zd-examine-list">
                    <p class="zd-head-title">禁止评论:</p>
                    <div class="zd-info">
                        <p class="zd-info-label">禁止人: {{ '狮子狗🦁️' }}</p>
                        <p class="zd-info-label">禁止理由: {{ '这个狮子狗太猥琐了,一直在草丛里蹲着' }}</p>
                    </div>
                </div> -->
                <div class="zd-examine-list">
                    <p class="zd-head-title">评论详情:</p>
                    <div class="zd-info">
                        <p
                            class="zd-info-label zd-info-detail"
                            :style="{whiteSpace: 'normal'}"
                        >
                            {{ dialogData.content ? dialogData.content : '--' }}
                        </p>
                    </div>
                </div>
                <div class="zd-examine-list">
                    <p class="zd-head-title">评论图片:</p>
                    <div
                        class="zd-info"
                    >
                        <div
                            class="zd-info-label"
                            :style="{width: '460px', display: 'flex', flexWrap: 'wrap'}"
                        >
                            <!-- <img
                                v-for="(item,index) in dialogData.images"
                                :key="index"
                                :src="item"
                                :style="{width: '80px', height: '80px', marginLeft: '10px', marginBottom: '10px'}"
                                @click="fnShowPreview(dialogData.images, index)"
                            > -->
                            <el-image
                                v-for="(item,index) in dialogData.images"
                                :key="index"
                                :src="item"
                                :style="{width: '80px', height: '80px', marginLeft: '10px', marginBottom: '10px'}"
                                :preview-src-list="dialogData.images"
                            />
                        </div>
                    </div>
                </div>
                <div
                    class="zd-examine-list"
                    style="align-items: center"
                    :style="{ 'pointerEvents' : dialog_status ? '' : 'none' }"
                >
                    <p class="zd-head-title">不通过理由:</p>
                    <el-input
                        type="textarea"
                        :autosize="{ minRows: 2, maxRows: 6}"
                        placeholder="请输入内容"
                        v-model="reason"
                    />
                </div>
                <div class="zd-foot">
                    <div class="zd-foot-left">
                        <el-button
                            type="primary"
                            size="mini"
                            style="margin-right: 10px"
                            @click="fnExamineAdopt(dialogData)"
                            v-if="dialog_status"
                        >
                            通过
                        </el-button>
                        <el-button
                            size="mini"
                            @click="fnExamineNoAdopt(dialogData, false)"
                            v-if="dialog_status"
                        >
                            不通过
                        </el-button>
                        <el-tag
                            type="info"
                            style="cursor: not-allowed"
                            v-if="!dialog_status && (dialogData.verify === 1) "
                        >
                            审核通过
                        </el-tag>
                        <el-tag
                            type="info"
                            style="cursor: not-allowed"
                            v-if="!dialog_status && (dialogData.verify === -1) "
                        >
                            审核未通过
                        </el-tag>
                    </div>
                    <div class="zd-foot-right">
                        <i class="el-icon-arrow-left"/>
                        <p
                            class="zd-foot-prev"
                            @click="fnPrevtData()"
                        >
                            上一条反馈
                        </p>
                        <p
                            class="zd-foot-next"
                            @click="fnNexttData()"
                        >
                            下一条反馈
                        </p>
                        <i class="el-icon-arrow-right"/>
                    </div>
                </div>
            </div>
        </el-dialog>

        <!-- 图片预览 -->
        <img-preview ref="preview" />
    </div>
</template>

<script>
import imgPreview from '@/components/common/img-preview';
import { back } from '@/mixin/back';
import { getDate } from '@/assets/js/utils';
import { mapState } from 'vuex';
export default {
    mixins: [back],
    components: {
        imgPreview
    },
    data () {
        return {
            student_no: '', //记录编号
            //审核弹窗
            dialogData: {},
            dialog_status: true,
            reason: '',
            pageIndex: 0,
            pageSize: 0,
            dialogVisible: false,
            //筛选字段
            formData: {
                student_no: '',
                keyword: '',
                verify_admin_true_name: '',
                through: 99,
                anonymous: 99,
                lebanon: 99,
                date: []
            },
            date: [],
            throughList: [{value: 99,label: '全部'},{value: 1,label: '通过'},{value: -1,label: '未通过'},{value: 0,label: '未审核'}],
            anonymouList: [{value: 99,label: '全部'},{value: 1,label: '是'},{value: 0,label: '否'}],
            lebanonList: [{value: 99,label: '全部'},{value: 1,label: '是'},{value: 0,label: '否'}],
            page: {
                now_page: 1,
                total_count: 0,
                page_size: 0
            },
            tableData: [],
            authResult: {}
        };
    },
    filters: {},
    computed: {
        ...mapState({
            userInfo: state => state.userinfo.userinfo,
        })
    },
    watch: {
        showMask (val) {
            if(!val) {
                this.$refs['ruleFormMask'].resetFields();
            }
        }
    },
    mounted () {
        this.$store.commit('SET_HEADER', [{ title: "APP后台"},{title: '社交'},{title: '夸夸我的大学'},{title: '评论审核管理'}]);
        this.authResult = this.$route.meta.authResult;
        this.getTableData();

        console.log('authResult', this.authResult);
    },
    methods: {
        /**
         * @description 获取表格数据
         */
        getTableData (page) {
            this.$post('/student/social_schoolpraise%5Cget_verify_list', {
                page_id: page || this.page.now_page,
                keyword_student_id: this.formData.student_no,
                verify: this.formData.through,
                content: this.formData.keyword,
                verify_admin_true_name: this.formData.verify_admin_true_name,
                is_anonymous: this.formData.anonymous,
                student_block: this.formData.lebanon,
                create_start_time: this.date === null ? '' : (this.date.length == 0 ? '' : getDate(new Date(this.date[0]))),
                create_end_time: this.date === null ? '' : (this.date.length == 0 ? '' : getDate(new Date(this.date[1])))
            }, resp => {
                if (resp.code == 1) {
                    this.tableData = resp.data.list;
                    this.page.now_page = resp.data.page.now_page;
                    this.page.total_count = resp.data.page.total_count;
                    this.page.page_size = resp.data.page.page_size;

                    //计算当前页数据数量
                    if(resp.data.page.total_count == 1) {
                        this.pageSize = resp.data.page.total_count;
                    } else if (resp.data.page.total_count > 1 && resp.data.page.next_page > 0) {
                        this.pageSize = 20;
                    } else if (resp.data.page.total_count > 1 && resp.data.page.next_page == 0) {
                        this.pageSize = resp.data.page.total_count - (resp.data.page.now_page - 1) * 20;
                    }
                }
            });
        },

        /**
         * @description 审核
         */
        fnEXamlineDialog (row, index) {
            this.dialogData = {
                ...row
            };
            this.pageIndex = index;
            this.dialog_status = true;
            this.dialogVisible = !this.dialogVisible;
        },

        /**
         * @description 查看
         */
        fnSeeDialog (row, index) {
            this.dialogData = {
                ...row
            };
            this.reason = row.audit_reason;
            this.dialog_status = false;
            this.pageIndex = index;
            this.dialogVisible = !this.dialogVisible;
        },

        /**
         * @description 审核通过
         */
        fnExamineAdopt (row) {
            if(!this.authResult.auth_verfy) {
                this.$notify({
                    title: '提示',
                    message: '此权限仅限管理员',
                    type: 'warning',
                    duration: 2000
                });
                return;
            }

            this.$confirm('是否确定通过审核？', '提示', {
                confirmButtonText: '确定',
                cancelButtonText: '取消',
                type: 'warning'
            }).then(() => {
                this.$post('/student/social_schoolpraise%5Cverify',{
                    praise_no: row.praise_no,
                    verify: 1,
                    verify_fail_reason: ''
                }, resp => {
                    if (resp.code == 1) {
                        this.dialog_status = false;
                        this.dialogData = this.tableData[this.pageIndex];
                        this.$set(this.dialogData, 'verify', 1);
                        this.getTableData();
                        this.$notify({
                            title: '提示',
                            message: '操作成功',
                            type: 'success',
                            duration: 2000
                        });
                    } else {
                        this.$notify({
                            title: '提示',
                            message: resp.msg,
                            type: 'warning',
                            duration: 2000
                        });
                    }
                });
            });
        },

        /**
         * @description 审核不通过
         */
        fnExamineNoAdopt (row, type) {
            if(!this.authResult.auth_verfy) {
                this.$notify({
                    title: '提示',
                    message: '此权限仅限管理员',
                    type: 'warning',
                    duration: 2000
                });
                return;
            }

            if(type) {
                this.$prompt('请输入不通过原因', '提示', {
                    confirmButtonText: '确定',
                    cancelButtonText: '取消',
                    inputPattern: /\S/,
                    inputErrorMessage: '内容不可以为空'
                }).then(({ value }) => {
                    this.$post('/student/social_schoolpraise%5Cverify',{
                        praise_no: row.praise_no,
                        verify: -1,
                        verify_fail_reason: value
                    }, resp => {
                        if (resp.code == 1) {
                            this.getTableData();
                            this.dialog_status = false;
                            this.$notify({
                                title: '提示',
                                message: '操作成功',
                                type: 'success',
                                duration: 2000
                            });
                        } else {
                            this.$notify({
                                title: '提示',
                                message: resp.msg,
                                type: 'warning',
                                duration: 2000
                            });
                        }
                    });
                });
            }

            if(!type) {
                if (this.reason == '') {
                    this.$message({
                        type: 'waring',
                        message: '请填写不通过理由,不可以为空',
                        center: true
                    });
                    return;
                } else {
                    this.$post('/student/social_schoolpraise%5Cverify',{
                        praise_no: this.dialogData.praise_no,
                        verify: -1,
                        verify_fail_reason: this.reason
                    }, resp => {
                        if (resp.code == 1) {
                            this.getTableData();
                            this.dialog_status = false;
                            this.dialogData = this.tableData[this.pageIndex];
                            this.$set(this.dialogData, 'verify', -1);
                            this.$notify({
                                title: '提示',
                                message: '操作成功',
                                type: 'success',
                                duration: 2000
                            });
                        } else {
                            this.$notify({
                                title: '提示',
                                message: resp.msg,
                                type: 'warning',
                                duration: 2000
                            });
                        }
                    });
                }
            }
        },

        /**
         * @description 上一条
         */
        fnPrevtData () {
            if(this.pageIndex == 0) {
                this.$notify({
                    title: '提示',
                    message: '当前已经是第一条了',
                    type: 'warning',
                    duration: 2000
                });
                return;
            }

            this.pageIndex--;
            this.dialogData = this.tableData[this.pageIndex];
            this.dialog_status = this.dialogData.verify == 0 ? true : false;
            if(!this.dialog_status) {
                this.reason = this.dialogData.audit_reason;
            }
        },

        /**
         * @description 下一条
         */
        fnNexttData () {
            if(this.pageIndex == this.pageSize - 1) {
                this.$notify({
                    title: '提示',
                    message: '当前已经是最后一条了',
                    type: 'warning',
                    duration: 2000
                });
                return;
            }
            this.pageIndex++;
            this.dialogData = this.tableData[this.pageIndex];
            this.dialog_status = this.dialogData.verify == 0 ? true : false;
            if(!this.dialog_status) {
                this.reason = this.dialogData.audit_reason;
            }
        },

        /**
         * @description 禁言/取消禁言
         */
        fnNoComment (row) {
            if(!this.authResult.auth_block) {
                this.$notify({
                    title: '提示',
                    message: '此权限仅限管理员',
                    type: 'warning',
                    duration: 2000
                });
                return;
            }

            if(row.student_block == 0) {
                this.$confirm('是否要禁言此用户', '提示', {
                    confirmButtonText: '确定',
                    cancelButtonText: '取消',
                    type: 'warning'
                }).then(() => {
                    this.$post('/student/social_schoolpraise%5Cstudent_block',{
                        student_no: row.student.student_no,
                        status: 1
                    },resp=>{
                        if (resp.code == 1) {
                            this.getTableData();
                            this.$notify({
                                title: '提示',
                                message: '操作成功',
                                type: 'success',
                                duration: 2000
                            });
                        } else if (resp.code == 0) {
                            this.$notify({
                                title: '提示',
                                message: resp.msg,
                                type: 'warning',
                                duration: 2000
                            });
                        }
                    });
                });
            }

            if(row.student_block == 1) {
                this.$post('/student/social_schoolpraise%5Cstudent_block',{
                    student_no: row.student.student_no,
                    status: 0
                },resp=>{
                    if (resp.code == 1) {
                        this.getTableData();
                        this.$notify({
                            title: '提示',
                            message: '操作成功',
                            type: 'success',
                            duration: 2000
                        });
                    } else if (resp.code == 0) {
                        this.$notify({
                            title: '提示',
                            message: resp.msg,
                            type: 'warning',
                            duration: 2000
                        });
                    }
                });
            }
        },

        /**
         * @description 查看图片
         * @param   {String}    images    单图预览
         * @param   {Array}     images     多图预览
         */
        fnShowPreview(images, index) {
            if(images && Object.prototype.toString.call(images) == '[object String]') {
                this.$refs.preview.show([
                    images
                ]);
            } else if (images && Object.prototype.toString.call(images) == '[object Array]') {
                this.$refs.preview.show(images, index);
            } else {
                this.$notify({
                    title: '提示',
                    message: '图片类型错误',
                    type: 'warning',
                    duration: 2000
                });
            }
        },

        /**
         * @description 时间处理
         */
        pickerOptions () {
            return {
                shortcuts : [{
                    text: '最近一周',
                    onClick(picker) {
                        const end = new Date();
                        const start = new Date();

                        start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
                        picker.$emit('pick', [start, end]);
                    }
                }, {
                    text: '最近一个月',
                    onClick(picker) {
                        const end = new Date();
                        const start = new Date();

                        start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
                        picker.$emit('pick', [start, end]);
                    }
                }, {
                    text: '最近三个月',
                    onClick(picker) {
                        const end = new Date();
                        const start = new Date();

                        start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
                        picker.$emit('pick', [start, end]);
                    }
                }]
            };
        },

        /**
         * @description 过滤函数
         */
        emptyFormatter(row, column, val) {
            if (!val) return '--';
            return val;
        }
    }
};
</script>

<style lang="less" scoped>
    .container {
        background-color: #fff;
        padding: 10px 15px 5px 15px;
        display: flex;
        flex-direction: column;
        position: relative;
        width: 100%;
        .header-nav {
            position: relative;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            .header-left, .header-right {
                display: flex;
                align-items: center;
                flex-wrap: wrap;
            }
            .header-new-box {
                display: flex;
                margin-right: 15px;
                align-items: center;
                color: #606266;
                margin-bottom: 10px;
                white-space: nowrap;
                &-title {
                    margin-right: 2px;
                    white-space: nowrap;
                }
            }
        }
        /* 表单 */
        .scope-price {
            width: 50px;
            height: 50px;
        }
        /* 字体高亮 */
        .cursor-font {
            color: rgb(64, 158, 255);
            cursor: pointer;
        }
        /* 分页 */
        .pagination-wrapper {
            padding-top: 10px;
            padding-bottom: 10px;
            .el-pagination {
                float: right;
                padding: 0;
                background-color: transparent;
            }
        }
    }
    /* 排序 */
    .sort-wrap {
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        .sort-spliter {
            width: 1px;
            height: 12px;
            background: rgba(235, 235, 235, 1);
            margin: 0 10px;
            }
            .btn-sort {
            font-size: 14px;
            line-height: 1;
            color: #ccc;
            &:hover {
                color: #20a0ff;
            }
        }
    }
    .el-button-left {
        margin-left: 40px;
    }
    .el-button-right {
        margin-right: 10px;
    }
    .button-list {
        display: flex;
        flex-direction: column;
        align-items: center;
        .el-button {
            margin-left: 0 !important;
            padding: 5px 0;
        }
    }
    .dialog-footer {
        display: flex;
        justify-content: center;
        margin-top: -20px;
    }
    /* 审核弹窗 */
    .zd-examine {
        width: 100%;
        .zd-examine-list {
            min-height: 20px;
            display: flex;
            padding-bottom: 15px;
            box-sizing: border-box;
            align-items: flex-start;
            .zd-head-title {
                color: #606285;
                font-size: 14px;
                margin-right: 20px;
                white-space: nowrap;
                width: 65px;
            }
            .zd-info {
                width: 460px;
                display: flex;
                flex-wrap: wrap;
                .zd-info-label {
                    width: 230px;
                    min-height: 20px;
                    font-size: 14px;
                    line-height: 20px;
                    color: #333;
                    margin-bottom: 15px;
                    white-space: nowrap;
                    cursor: pointer;
                    &:hover {
                        i {
                            color: rgb(64, 158, 255);

                        }
                    }
                }
                .zd-info-detail {
                    width: 460px;
                    // overflow: hidden;
                    // text-overflow: ellipsis;
                    // white-space: nowrap;
                    line-height: 17px;
                }
            }
            .zd-examine-line {
                width: 200px;
                height: 12px;
                border-radius: 6px;
                background: rgba(64, 158, 255, .2);
                .zd-examine-line-length {
                    height: 12px;
                    border-radius: 6px;
                    background: rgba(64, 158, 255, 1);
                    transition: all .5s;
                }
            }
            .zd-examine-page {
                font-size: 14px;
                color: #333;
                margin-left: 10px;
            }
        }
        .zd-foot {
            display: flex;
            justify-content: space-between;
            margin-top: 20px;
            .zd-foot-left, .zd-foot-right {
                display: flex;
                height: 32px;
                align-items: center;
                cursor: pointer;
                user-select:none;
                .zd-foot-prev {
                    font-size: 14px;
                    color: #333;
                    margin-right: 15px;
                    // &:hover {
                    //     color: #20a0ff;
                    // }
                }
                .zd-foot-next {
                    font-size: 14px;
                    color: #333;
                    // &:hover {
                    //     color: #20a0ff;
                    // }
                }
            }
        }
    }
</style>
<style lang="less">
    .commentExamine{
        .el-table__body-wrapper .el-table__body .el-table__row td {
            border-right: none;
        }
        .el-table__header-wrapper .el-table__header .has-gutter tr th {
            border-right: none;
        }
        .el-table .el-table_1_column_6  .cell {
            position: relative;
        }
        .el-range-editor--small .el-range-separator{
            padding: 0 1px !important;
        }
        .el-dialog__header {
            padding-top: 10px;
            box-shadow:0px 1px 0px 0px rgba(233,233,233,1);
            display: flex;
            align-items: center;
            background: #FAFAFA;
            border-radius: 4px 4px 0 0;
            .el-dialog__title {
                font-weight: 500;
                color: #333;
                font-size: 14px;
            }
            .el-icon-close:before {
                color: rgb(194,194,194);
                font-size: 17px;
                font-weight: bold;
            }
            .el-dialog__headerbtn {
                top: 14px;
            }
        }
    }
</style>